package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Text {
    public static void main(String[] args) {
        try {
            int[] array =new int[]{1,2,3};
            array=null;
            System.out.println(array[10]);
        }catch (NullPointerException e){
            e.printStackTrace();
        }
        System.out.println("后续代码");
    }
    public static void main1(String[] args) throws CloneNotSupportedException {
        Person person1 =new Person();
        Person person2 =(Person) person1.clone();
    }
}
